{template "header.html"}

<section class="main-content-area">
    <div class="container">
        <!-- bradcame start -->
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                <div class="greentect_bradcame">
                    <ul>
                        <li><a href="{SITE_URL}">首页</a></li>
                        {dr_catpos($catid, '', true, '<li> <a href="[url]">[name]</a> </li>')}
                        <li>详情</li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- bradcame end -->

        <!-- single page product information start -->
        <div class="single-product-page-area">
            <div class="row">
                <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
                    <div class="single-product-image">
                        <div class="single-pro-main-image">
                            <img src="{dr_thumb($thumb, 500, 500)}" />
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-7">
                    <div class="single-product-description">
                        <div class="pro-desc">
                            <h2>{$title}</h2>
                            <div class="review_forum">
                                <div class="rating-box">
                                    {dr_mall_star_level($avgsort)}
                                </div>

                                <p>
                                    <a href="{dr_comment_url($id)}"><i class="fa fa-comments"></i> {$comments}</a>
                                    <a href="javascript:;"><i class="fa fa-eye"></i> {dr_show_hits($id)}</a>
                                </p>
                            </div>

                            <div class="product-desc">
                                {$description}
                            </div>
                            {if $score_sku}
                            <?php $score_sku = dr_string2array($score_sku);?>
                            {loop $score_sku $gid $val}
                            <div class="product-price-group" style="margin-bottom: 7px;">
                                <span class="discount">{$ci->member_cache[group][$gid][name]}</span>
                                <span class="price regular-price">{$val}</span>
                            </div>
                            {/loop}
                            {else}
                            <div class="product-price-group">
                                <span class="discount">积分</span>
                                <span class="price regular-price">{$score}</span>
                            </div>
                            {/if}



                        </div>

                        <div class="form-action">

                            <div class="button-group">
                                <a style="margin-top: 10px;" href="javascript:dr_mall_favorite('{MOD_DIR}', '{$id}');" class="btn blue"> <i class="fa fa-heart-o"></i> 收藏商品 </a>
                                <a style="margin-top: 10px;" href="{dr_url('order/score/index')}&mid={MOD_DIR}&id={$id}" class="btn green"> <i class="fa fa-diamond"></i> 立即购买 </a>
                            </div>

                        </div>

                    </div>
                </div>
            </div>
            <!-- product description tab start -->
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <div class="product-more-info-tab">
                        <!-- Nav tabs -->
                        <ul class="more-info-tab nav nav-tabs">
                            <li class="active"><a href="#proDescription" data-toggle="tab">商品详情</a></li>
                            <li><a href="#proTag" data-toggle="tab">商品评论（{$comments}）</a></li>
                        </ul>
                        <!-- Tab panes -->
                        <div class="product-tab-content tab-content">
                            <div class="tab-pane active" id="proDescription">
                                {$content}
                            </div>
                            <div class="tab-pane" id="proTag">
                                {dr_module_comment(MOD_DIR, $id)}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- product description tab end -->
        </div>


    </div>
</section>

{template "footer.html"}